<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <NETStandardLibraryPackageVersion>2.0.3</NETStandardLibraryPackageVersion>
  </PropertyGroup>

  <!-- Only add references if we're actually targeting .NETStandard.
       If the project is targeting some other TFM that is compatible with NETStandard we expect
       that framework to provide all references for NETStandard, mscorlib, System.* in their own
       targeting pack / SDK.
       Choose/When is required to avoid an issue where the old desktop project system in VS 
       will evaluate this item ignoring the condition in order to populate the references. -->
  <Choose>
    <When Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">
      <ItemGroup>
        <Reference Include="$(MSBuildThisFileDirectory)ref\netstandard.dll">
          <!-- Private = false to make these reference only -->
          <Private>false</Private>
          <!-- hide these from Assemblies view in Solution Explorer, they will be shown under packages -->
          <Visible>false</Visible>
          <NuGetPackageId>NETStandard.Library</NuGetPackageId>
          <NuGetPackageVersion>$(NETStandardLibraryPackageVersion)</NuGetPackageVersion>    
        </Reference>
        <Reference Include="$(MSBuildThisFileDirectory)ref\Microsoft.Win32.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.AppContext.dll;$(MSBuildThisFileDirectory)ref\System.Collections.Concurrent.dll;$(MSBuildThisFileDirectory)ref\System.Collections.dll;$(MSBuildThisFileDirectory)ref\System.Collections.NonGeneric.dll;$(MSBuildThisFileDirectory)ref\System.Collections.Specialized.dll;$(MSBuildThisFileDirectory)ref\System.ComponentModel.dll;$(MSBuildThisFileDirectory)ref\System.ComponentModel.EventBasedAsync.dll;$(MSBuildThisFileDirectory)ref\System.ComponentModel.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.ComponentModel.TypeConverter.dll;$(MSBuildThisFileDirectory)ref\System.Console.dll;$(MSBuildThisFileDirectory)ref\System.Data.Common.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.Contracts.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.Debug.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.FileVersionInfo.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.Process.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.StackTrace.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.TextWriterTraceListener.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.Tools.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.TraceSource.dll;$(MSBuildThisFileDirectory)ref\System.Diagnostics.Tracing.dll;$(MSBuildThisFileDirectory)ref\System.Drawing.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.Dynamic.Runtime.dll;$(MSBuildThisFileDirectory)ref\System.Globalization.Calendars.dll;$(MSBuildThisFileDirectory)ref\System.Globalization.dll;$(MSBuildThisFileDirectory)ref\System.Globalization.Extensions.dll;$(MSBuildThisFileDirectory)ref\System.IO.Compression.dll;$(MSBuildThisFileDirectory)ref\System.IO.Compression.ZipFile.dll;$(MSBuildThisFileDirectory)ref\System.IO.dll;$(MSBuildThisFileDirectory)ref\System.IO.FileSystem.dll;$(MSBuildThisFileDirectory)ref\System.IO.FileSystem.DriveInfo.dll;$(MSBuildThisFileDirectory)ref\System.IO.FileSystem.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.IO.FileSystem.Watcher.dll;$(MSBuildThisFileDirectory)ref\System.IO.IsolatedStorage.dll;$(MSBuildThisFileDirectory)ref\System.IO.MemoryMappedFiles.dll;$(MSBuildThisFileDirectory)ref\System.IO.Pipes.dll;$(MSBuildThisFileDirectory)ref\System.IO.UnmanagedMemoryStream.dll;$(MSBuildThisFileDirectory)ref\System.Linq.dll;$(MSBuildThisFileDirectory)ref\System.Linq.Expressions.dll;$(MSBuildThisFileDirectory)ref\System.Linq.Parallel.dll;$(MSBuildThisFileDirectory)ref\System.Linq.Queryable.dll;$(MSBuildThisFileDirectory)ref\System.Net.Http.dll;$(MSBuildThisFileDirectory)ref\System.Net.NameResolution.dll;$(MSBuildThisFileDirectory)ref\System.Net.NetworkInformation.dll;$(MSBuildThisFileDirectory)ref\System.Net.Ping.dll;$(MSBuildThisFileDirectory)ref\System.Net.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.Net.Requests.dll;$(MSBuildThisFileDirectory)ref\System.Net.Security.dll;$(MSBuildThisFileDirectory)ref\System.Net.Sockets.dll;$(MSBuildThisFileDirectory)ref\System.Net.WebHeaderCollection.dll;$(MSBuildThisFileDirectory)ref\System.Net.WebSockets.Client.dll;$(MSBuildThisFileDirectory)ref\System.Net.WebSockets.dll;$(MSBuildThisFileDirectory)ref\System.ObjectModel.dll;$(MSBuildThisFileDirectory)ref\System.Reflection.dll;$(MSBuildThisFileDirectory)ref\System.Reflection.Extensions.dll;$(MSBuildThisFileDirectory)ref\System.Reflection.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.Resources.Reader.dll;$(MSBuildThisFileDirectory)ref\System.Resources.ResourceManager.dll;$(MSBuildThisFileDirectory)ref\System.Resources.Writer.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.CompilerServices.VisualC.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Extensions.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Handles.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.InteropServices.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.InteropServices.RuntimeInformation.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Numerics.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Serialization.Formatters.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Serialization.Json.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Serialization.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Serialization.Xml.dll;$(MSBuildThisFileDirectory)ref\System.Security.Claims.dll;$(MSBuildThisFileDirectory)ref\System.Security.Cryptography.Algorithms.dll;$(MSBuildThisFileDirectory)ref\System.Security.Cryptography.Csp.dll;$(MSBuildThisFileDirectory)ref\System.Security.Cryptography.Encoding.dll;$(MSBuildThisFileDirectory)ref\System.Security.Cryptography.Primitives.dll;$(MSBuildThisFileDirectory)ref\System.Security.Cryptography.X509Certificates.dll;$(MSBuildThisFileDirectory)ref\System.Security.Principal.dll;$(MSBuildThisFileDirectory)ref\System.Security.SecureString.dll;$(MSBuildThisFileDirectory)ref\System.Text.Encoding.dll;$(MSBuildThisFileDirectory)ref\System.Text.Encoding.Extensions.dll;$(MSBuildThisFileDirectory)ref\System.Text.RegularExpressions.dll;$(MSBuildThisFileDirectory)ref\System.Threading.dll;$(MSBuildThisFileDirectory)ref\System.Threading.Overlapped.dll;$(MSBuildThisFileDirectory)ref\System.Threading.Tasks.dll;$(MSBuildThisFileDirectory)ref\System.Threading.Tasks.Parallel.dll;$(MSBuildThisFileDirectory)ref\System.Threading.Thread.dll;$(MSBuildThisFileDirectory)ref\System.Threading.ThreadPool.dll;$(MSBuildThisFileDirectory)ref\System.Threading.Timer.dll;$(MSBuildThisFileDirectory)ref\System.ValueTuple.dll;$(MSBuildThisFileDirectory)ref\System.Xml.ReaderWriter.dll;$(MSBuildThisFileDirectory)ref\System.Xml.XDocument.dll;$(MSBuildThisFileDirectory)ref\System.Xml.XmlDocument.dll;$(MSBuildThisFileDirectory)ref\System.Xml.XmlSerializer.dll;$(MSBuildThisFileDirectory)ref\System.Xml.XPath.dll;$(MSBuildThisFileDirectory)ref\System.Xml.XPath.XDocument.dll;$(MSBuildThisFileDirectory)ref\mscorlib.dll;$(MSBuildThisFileDirectory)ref\System.ComponentModel.Composition.dll;$(MSBuildThisFileDirectory)ref\System.Core.dll;$(MSBuildThisFileDirectory)ref\System.dll;$(MSBuildThisFileDirectory)ref\System.Data.dll;$(MSBuildThisFileDirectory)ref\System.Drawing.dll;$(MSBuildThisFileDirectory)ref\System.IO.Compression.FileSystem.dll;$(MSBuildThisFileDirectory)ref\System.Net.dll;$(MSBuildThisFileDirectory)ref\System.Numerics.dll;$(MSBuildThisFileDirectory)ref\System.Runtime.Serialization.dll;$(MSBuildThisFileDirectory)ref\System.ServiceModel.Web.dll;$(MSBuildThisFileDirectory)ref\System.Transactions.dll;$(MSBuildThisFileDirectory)ref\System.Web.dll;$(MSBuildThisFileDirectory)ref\System.Windows.dll;$(MSBuildThisFileDirectory)ref\System.Xml.dll;$(MSBuildThisFileDirectory)ref\System.Xml.Linq.dll;$(MSBuildThisFileDirectory)ref\System.Xml.Serialization.dll">
          <Facade>true</Facade>
          <!-- Private = false to make these reference only -->
          <Private>false</Private>
          <!-- hide these from Assemblies view in Solution Explorer, they will be shown under packages -->
          <Visible>false</Visible>
          <NuGetPackageId>NETStandard.Library</NuGetPackageId>
          <NuGetPackageVersion>$(NETStandardLibraryPackageVersion)</NuGetPackageVersion>
        </Reference>
      </ItemGroup>
    </When>
  </Choose>
</Project>
